import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import gdinfo from './modules/gdinfo'
import getters from './getters'
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({

  getters,
  mutations: {
  },
  actions: {
  },
  modules: {
    user,
    gdinfo
  },
  plugins: [createPersistedState({
    paths: ['user.token']
  })]
})
